package com.ruoyi.tongyan.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tongyan.mapper.TProjectContractMapper;
import com.ruoyi.tongyan.domain.TProjectContract;
import com.ruoyi.tongyan.service.ITProjectContractService;

/**
 * 项目和合同关联Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-20
 */
@Service
public class TProjectContractServiceImpl implements ITProjectContractService
{
    @Autowired
    private TProjectContractMapper tProjectContractMapper;

    /**
     * 查询项目和合同关联
     *
     * @param id 项目和合同关联主键
     * @return 项目和合同关联
     */
    @Override
    public TProjectContract selectTProjectContractById(Long id)
    {
        return tProjectContractMapper.selectTProjectContractById(id);
    }

    /**
     * 查询项目和合同关联列表
     *
     * @param tProjectContract 项目和合同关联
     * @return 项目和合同关联
     */
    @Override
    public List<TProjectContract> selectTProjectContractList(TProjectContract tProjectContract)
    {
        return tProjectContractMapper.selectTProjectContractList(tProjectContract);
    }

    /**
     * 新增项目和合同关联
     *
     * @param tProjectContract 项目和合同关联
     * @return 结果
     */
    @Override
    public int insertTProjectContract(TProjectContract tProjectContract)
    {
        return tProjectContractMapper.insertTProjectContract(tProjectContract);
    }

    /**
     * 修改项目和合同关联
     *
     * @param tProjectContract 项目和合同关联
     * @return 结果
     */
    @Override
    public int updateTProjectContract(TProjectContract tProjectContract)
    {
        return tProjectContractMapper.updateTProjectContract(tProjectContract);
    }

    /**
     * 批量删除项目和合同关联
     *
     * @param ids 需要删除的项目和合同关联主键
     * @return 结果
     */
    @Override
    public int deleteTProjectContractByIds(Long[] ids)
    {
        return tProjectContractMapper.deleteTProjectContractByIds(ids);
    }

    /**
     * 删除项目和合同关联信息
     *
     * @param id 项目和合同关联主键
     * @return 结果
     */
    @Override
    public int deleteTProjectContractById(Long id)
    {
        return tProjectContractMapper.deleteTProjectContractById(id);
    }
}
